SSDMobileNetV1

object SSDMobileNetV1 : ONNXModels.ObjectDetection<SSDLikeModel>

This model is a real-time neural network for object detection that detects 90 different classes (labels are available in org.jetbrains.kotlinx.dl.impl.dataset.Coco.V2017).

SSD-MobilenetV1 is an object detection model that uses a Single Shot MultiBox Detector (SSD) approach to predict object classes for boundary boxes.

SSD is a CNN that enables the model to only need to take one single shot to detect multiple objects in an image, and MobileNet is a CNN base network that provides high-level features for object detection. The combination of these two model frameworks produces an efficient, high-accuracy detection model that requires less computational cost.

The model have an input with the shape is (1x300x300x3).

The model has 4 outputs:

  • num_detections: the number of detections.

  • detection_boxes: a list of bounding boxes. Each list item describes a box with top, left, bottom, right relative to the image size.

  • detection_scores: the score for each detection with values between 0 and 1 representing probability that a class was detected.

  • detection_classes: Array of 10 integers (floating point values) indicating the index of a class label from the COCO class.

See also

Functions

model
Link copied to clipboard
open fun model(modelHub: ModelHub): OnnxInferenceModel
pretrainedModel
Link copied to clipboard
open override fun pretrainedModel(modelHub: ModelHub): SSDLikeModel

Properties

inputShape
Link copied to clipboard
open val inputShape: LongArray?

Shape of the input accepted by this model, without batch size.

modelRelativePath
Link copied to clipboard
open override val modelRelativePath: String
preprocessor
Link copied to clipboard
open val preprocessor: Operation<Pair<FloatArray, TensorShape>, Pair<FloatArray, TensorShape>>